url = '/account/profile.html'
description = '用户控制面板'
layout = 'default'

[session]
security = "user"
redirect = "account/login"
==
{% put page_title %}個人情報 - {% default %}{% endput %}
{% set orders = catalog.orders %}
{% set Addresses = catalog.getAddresses %}


<div class="address_content">
    <!-- breadcrumbs -->
    <div class="breadcrumbs">
        <div class="container">
            <ul>
                <li class="fl" ><a href="/">HCLOSET</a></li>
                <li class="fl" >会員基本情報の確認･変更</li>
            </ul>
        </div>
    </div>
    <!-- breadcrumbs end -->
    <div class="addressCont">
        <div class="container">
            <h2 class="pageHead1">会員基本情報の確認･変更</h2>
            <div class="ov dashboardBox">
                <div class="fl d_sidemenus">
                    {% partial 'account/left-bar' %}
                </div>
                <div class="fr d_main">
                    <div class="main-ttl">会員基本情報の確認･変更</div>
                    <div class="addressBox">
                        <p class="lead">
                            登録内容を変更する場合は、該当項目を修正し「登録内容を確認する」ボタンをクリックしてください。
                        </p>
                        {{ form_open({'request': 'onSaveAccount'}) }}
                        <div class="d_main">
                            <table class="shippingContTable">
                                <tbody>
                                <tr>
                                    <th>メールアドレス</th>
                                    <td class="icon"><img src="{{ 'assets/img/icon-must.gif'|theme }}" alt=""></td>
                                    <td class="input-element">
                                        <input type="text" id="firstname" name="profile[name]" value="{{ user.name }}" title="メールアドレスを入力してください">
                                        <p class="ex"></p>
                                    </td>
                                </tr>
                                <tr>
                                    <th>フリガナ</th>
                                    <td class="icon"><img src="{{ 'assets/img/icon-must.gif'|theme }}" alt=""></td>
                                    <td class="input-element">
                                        <input type="text" id="lastname" name="profile[surname]" value="{{ user.surname }}" title="フリガナ" required>
                                        <p class="ex"></p>
                                    </td>
                                </tr>
                                <tr>
                                    <th>メールアドレス</th>
                                    <td class="icon"><img src="{{ 'assets/img/icon-must.gif'|theme }}" alt=""></td>
                                    <td class="input-element">
                                        <input type="text" name="profile[email]" id="email" value="{{ user.email }}" title="メールアドレス" required>
                                        <p class="ex"></p>
                                    </td>
                                </tr>

                                <tr>
                                    <th>現在のパスワード</th>
                                    <td class="icon"><img src="{{ 'assets/img/icon-must.gif'|theme }}" alt=""></td>
                                    <td class="input-element">
                                        <input type="password" name="profile[old_password]" class="input-text required-entry">
                                        <p class="ex"></p>
                                    </td>
                                </tr>
                                <tr>
                                    <th>新しいパスワード</th>
                                    <td class="icon"><img src="{{ 'assets/img/icon-must.gif'|theme }}" alt=""></td>
                                    <td class="input-element">
                                        <input type="password" id="newpassword" name="profile[password]" required>
                                        <p class="ex"></p>
                                    </td>
                                </tr>
                                <tr>
                                    <th>新しいパスワードを確認する</th>
                                    <td class="icon"><img src="{{ 'assets/img/icon-must.gif'|theme }}" alt=""></td>
                                    <td class="input-element">
                                        <input type="password" id="reviewpassword" name="profile[password_confirmation]" required>
                                        <p class="ex"></p>
                                    </td>
                                </tr>

                                </tbody>
                            </table>
                            <div class="btn-changed onBigBtn">

                                <button type="submit" class="blueBtn2">
                                    ＞ 規則に同意して、確認画面へ進む
                                </button>
                            </div>
                            <div class="btn-changed onBigBtn">
                                <a href="/" shape="rect">
                                    <img alt="マイページトップ" src="{{ 'assets/img/btn-back2.png'|theme }}">
                                </a>
                            </div>
                        </div>

                        </div>
                        {{ form_close() }}

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


